.class Lcom/estrongs/android/ui/dialog/n$a;
.super Ljava/lang/Object;
.source "ChooseNetworkDialog.java"

# interfaces
.implements Landroid/widget/AdapterView$OnItemClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/estrongs/android/ui/dialog/n;-><init>(Landroid/content/Context;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic a:Lcom/estrongs/android/ui/dialog/n;


# direct methods
.method constructor <init>(Lcom/estrongs/android/ui/dialog/n;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/estrongs/android/ui/dialog/n$a;->a:Lcom/estrongs/android/ui/dialog/n;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onItemClick(Landroid/widget/AdapterView;Landroid/view/View;IJ)V
    .locals 7
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/widget/AdapterView<",
            "*>;",
            "Landroid/view/View;",
            "IJ)V"
        }
    .end annotation

    .line 1
    invoke-virtual {p1}, Landroid/widget/AdapterView;->getAdapter()Landroid/widget/Adapter;

    move-result-object p1

    check-cast p1, Lcom/estrongs/android/ui/adapter/a;

    .line 2
    invoke-virtual {p1, p3}, Lcom/estrongs/android/ui/adapter/a;->b(I)Ljava/lang/String;

    move-result-object p2

    .line 3
    invoke-virtual {p1, p3}, Lcom/estrongs/android/ui/adapter/a;->a(I)I

    .line 4
    invoke-virtual {p1, p3}, Lcom/estrongs/android/ui/adapter/a;->c(I)Ljava/lang/String;

    move-result-object p1

    .line 5
    new-instance p3, Lorg/json/JSONObject;

    invoke-direct {p3}, Lorg/json/JSONObject;-><init>()V

    const-string p4, "onedrive"

    .line 6
    invoke-virtual {p1, p4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p5

    const-string v0, "cloud"

    if-eqz p5, :cond_0

    :try_start_0
    const-string p5, "one"

    .line 7
    invoke-virtual {p3, v0, p5}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 8
    invoke-static {}, Lcom/estrongs/android/statistics/b;->b()Lcom/estrongs/android/statistics/b;

    move-result-object p5

    invoke-virtual {p5, v0, p3}, Lcom/estrongs/android/statistics/b;->a(Ljava/lang/String;Lorg/json/JSONObject;)V
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception p5

    .line 9
    invoke-virtual {p5}, Lorg/json/JSONException;->printStackTrace()V

    :cond_0
    :goto_0
    const-string p5, "megacloud"

    .line 10
    invoke-virtual {p1, p5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_1

    :try_start_1
    const-string v1, "mega"

    .line 11
    invoke-virtual {p3, v0, v1}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 12
    invoke-static {}, Lcom/estrongs/android/statistics/b;->b()Lcom/estrongs/android/statistics/b;

    move-result-object v1

    invoke-virtual {v1, v0, p3}, Lcom/estrongs/android/statistics/b;->a(Ljava/lang/String;Lorg/json/JSONObject;)V
    :try_end_1
    .catch Lorg/json/JSONException; {:try_start_1 .. :try_end_1} :catch_1

    goto :goto_1

    :catch_1
    move-exception v1

    .line 13
    invoke-virtual {v1}, Lorg/json/JSONException;->printStackTrace()V

    :cond_1
    :goto_1
    const-string v1, "gdrive"

    .line 14
    invoke-virtual {p1, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_2

    :try_start_2
    const-string v2, "G"

    .line 15
    invoke-virtual {p3, v0, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 16
    invoke-static {}, Lcom/estrongs/android/statistics/b;->b()Lcom/estrongs/android/statistics/b;

    move-result-object v2

    invoke-virtual {v2, v0, p3}, Lcom/estrongs/android/statistics/b;->a(Ljava/lang/String;Lorg/json/JSONObject;)V
    :try_end_2
    .catch Lorg/json/JSONException; {:try_start_2 .. :try_end_2} :catch_2

    goto :goto_2

    :catch_2
    move-exception v2

    .line 17
    invoke-virtual {v2}, Lorg/json/JSONException;->printStackTrace()V

    :cond_2
    :goto_2
    const-string v2, "yandex"

    .line 18
    invoke-virtual {p1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_3

    :try_start_3
    const-string v2, "Yan"

    .line 19
    invoke-virtual {p3, v0, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 20
    invoke-static {}, Lcom/estrongs/android/statistics/b;->b()Lcom/estrongs/android/statistics/b;

    move-result-object v2

    invoke-virtual {v2, v0, p3}, Lcom/estrongs/android/statistics/b;->a(Ljava/lang/String;Lorg/json/JSONObject;)V
    :try_end_3
    .catch Lorg/json/JSONException; {:try_start_3 .. :try_end_3} :catch_3

    goto :goto_3

    :catch_3
    move-exception v2

    .line 21
    invoke-virtual {v2}, Lorg/json/JSONException;->printStackTrace()V

    :cond_3
    :goto_3
    const-string v2, "dropbox"

    .line 22
    invoke-virtual {p1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_4

    :try_start_4
    const-string v3, "Drop"

    .line 23
    invoke-virtual {p3, v0, v3}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 24
    invoke-static {}, Lcom/estrongs/android/statistics/b;->b()Lcom/estrongs/android/statistics/b;

    move-result-object v3

    invoke-virtual {v3, v0, p3}, Lcom/estrongs/android/statistics/b;->a(Ljava/lang/String;Lorg/json/JSONObject;)V
    :try_end_4
    .catch Lorg/json/JSONException; {:try_start_4 .. :try_end_4} :catch_4

    goto :goto_4

    :catch_4
    move-exception v3

    .line 25
    invoke-virtual {v3}, Lorg/json/JSONException;->printStackTrace()V

    :cond_4
    :goto_4
    const-string v3, "s3"

    .line 26
    invoke-virtual {p1, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_5

    :try_start_5
    const-string v3, "amazon"

    .line 27
    invoke-virtual {p3, v0, v3}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 28
    invoke-static {}, Lcom/estrongs/android/statistics/b;->b()Lcom/estrongs/android/statistics/b;

    move-result-object v3

    invoke-virtual {v3, v0, p3}, Lcom/estrongs/android/statistics/b;->a(Ljava/lang/String;Lorg/json/JSONObject;)V
    :try_end_5
    .catch Lorg/json/JSONException; {:try_start_5 .. :try_end_5} :catch_5

    goto :goto_5

    :catch_5
    move-exception v3

    .line 29
    invoke-virtual {v3}, Lorg/json/JSONException;->printStackTrace()V

    :cond_5
    :goto_5
    const-string v3, "box"

    .line 30
    invoke-virtual {p1, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v4

    if-eqz v4, :cond_6

    .line 31
    :try_start_6
    invoke-virtual {p3, v0, v3}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 32
    invoke-static {}, Lcom/estrongs/android/statistics/b;->b()Lcom/estrongs/android/statistics/b;

    move-result-object v4

    invoke-virtual {v4, v0, p3}, Lcom/estrongs/android/statistics/b;->a(Ljava/lang/String;Lorg/json/JSONObject;)V
    :try_end_6
    .catch Lorg/json/JSONException; {:try_start_6 .. :try_end_6} :catch_6

    goto :goto_6

    :catch_6
    move-exception v4

    .line 33
    invoke-virtual {v4}, Lorg/json/JSONException;->printStackTrace()V

    :cond_6
    :goto_6
    const-string v4, "sugarsync"

    .line 34
    invoke-virtual {p1, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v5

    if-eqz v5, :cond_7

    .line 35
    :try_start_7
    invoke-virtual {p3, v0, v4}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 36
    invoke-static {}, Lcom/estrongs/android/statistics/b;->b()Lcom/estrongs/android/statistics/b;

    move-result-object v4

    invoke-virtual {v4, v0, p3}, Lcom/estrongs/android/statistics/b;->a(Ljava/lang/String;Lorg/json/JSONObject;)V
    :try_end_7
    .catch Lorg/json/JSONException; {:try_start_7 .. :try_end_7} :catch_7

    goto :goto_7

    :catch_7
    move-exception v4

    .line 37
    invoke-virtual {v4}, Lorg/json/JSONException;->printStackTrace()V

    :cond_7
    :goto_7
    const-string v4, "pcs"

    .line 38
    invoke-virtual {p1, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v5

    if-eqz v5, :cond_8

    :try_start_8
    const-string v5, "baidunet"

    .line 39
    invoke-virtual {p3, v0, v5}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 40
    invoke-static {}, Lcom/estrongs/android/statistics/b;->b()Lcom/estrongs/android/statistics/b;

    move-result-object v5

    invoke-virtual {v5, v0, p3}, Lcom/estrongs/android/statistics/b;->a(Ljava/lang/String;Lorg/json/JSONObject;)V
    :try_end_8
    .catch Lorg/json/JSONException; {:try_start_8 .. :try_end_8} :catch_8

    goto :goto_8

    :catch_8
    move-exception v5

    .line 41
    invoke-virtual {v5}, Lorg/json/JSONException;->printStackTrace()V

    :cond_8
    :goto_8
    const-string v5, "mediafire"

    .line 42
    invoke-virtual {p1, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v6

    if-eqz v6, :cond_9

    .line 43
    :try_start_9
    invoke-virtual {p3, v0, v5}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 44
    invoke-static {}, Lcom/estrongs/android/statistics/b;->b()Lcom/estrongs/android/statistics/b;

    move-result-object v5

    invoke-virtual {v5, v0, p3}, Lcom/estrongs/android/statistics/b;->a(Ljava/lang/String;Lorg/json/JSONObject;)V
    :try_end_9
    .catch Lorg/json/JSONException; {:try_start_9 .. :try_end_9} :catch_9

    goto :goto_9

    :catch_9
    move-exception p3

    .line 45
    invoke-virtual {p3}, Lorg/json/JSONException;->printStackTrace()V

    .line 46
    :cond_9
    :goto_9
    invoke-virtual {p1, p5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p3

    if-eqz p3, :cond_a

    .line 47
    new-instance p1, Lcom/estrongs/android/ui/dialog/u0;

    iget-object p2, p0, Lcom/estrongs/android/ui/dialog/n$a;->a:Lcom/estrongs/android/ui/dialog/n;

    invoke-static {p2}, Lcom/estrongs/android/ui/dialog/n;->a(Lcom/estrongs/android/ui/dialog/n;)Landroid/content/Context;

    move-result-object p2

    invoke-direct {p1, p2}, Lcom/estrongs/android/ui/dialog/u0;-><init>(Landroid/content/Context;)V

    invoke-virtual {p1}, Lcom/estrongs/android/ui/dialog/u0;->a()V

    .line 48
    :try_start_a
    invoke-static {}, Lcom/estrongs/android/statistics/b;->b()Lcom/estrongs/android/statistics/b;

    move-result-object p1

    const-string p2, "cloud_mega"

    .line 49
    invoke-virtual {p1, p2}, Lcom/estrongs/android/statistics/b;->b(Ljava/lang/String;)V
    :try_end_a
    .catch Ljava/lang/Exception; {:try_start_a .. :try_end_a} :catch_a

    goto/16 :goto_c

    :catch_a
    move-exception p1

    .line 50
    invoke-virtual {p1}, Ljava/lang/Exception;->printStackTrace()V

    goto/16 :goto_c

    .line 51
    :cond_a
    invoke-virtual {p1, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p3

    if-nez p3, :cond_10

    .line 52
    invoke-virtual {p1, p4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p3

    if-nez p3, :cond_10

    .line 53
    invoke-virtual {p1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p3

    if-nez p3, :cond_10

    .line 54
    invoke-virtual {p1, p5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p3

    if-nez p3, :cond_10

    const-string p3, "vdisk"

    .line 55
    invoke-virtual {p1, p3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p3

    if-nez p3, :cond_10

    .line 56
    invoke-virtual {p1, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p3

    if-eqz p3, :cond_b

    goto/16 :goto_b

    .line 57
    :cond_b
    invoke-virtual {p1, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p3

    if-nez p3, :cond_f

    const-string p3, "googledrive"

    invoke-virtual {p1, p3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p3

    if-eqz p3, :cond_c

    goto/16 :goto_a

    .line 58
    :cond_c
    invoke-virtual {p1, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p3

    if-eqz p3, :cond_e

    .line 59
    iget-object p1, p0, Lcom/estrongs/android/ui/dialog/n$a;->a:Lcom/estrongs/android/ui/dialog/n;

    invoke-static {p1}, Lcom/estrongs/android/ui/dialog/n;->a(Lcom/estrongs/android/ui/dialog/n;)Landroid/content/Context;

    move-result-object p1

    invoke-static {p1}, Les/og;->b(Landroid/content/Context;)Ljava/lang/String;

    move-result-object p1

    .line 60
    invoke-static {p1, v4}, Les/j30;->d(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/Object;

    move-result-object p2

    check-cast p2, Ljava/util/Map;

    if-eqz p2, :cond_11

    const-string p3, "force_reg_token"

    .line 61
    invoke-interface {p2, p3}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object p4

    if-eqz p4, :cond_d

    .line 62
    invoke-interface {p2, p3}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object p2

    check-cast p2, Ljava/lang/String;

    invoke-static {p1, p2, v4}, Les/j30;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/Object;

    move-result-object p1

    move-object p2, p1

    check-cast p2, Ljava/util/Map;

    .line 63
    :cond_d
    new-instance p1, Ljava/lang/StringBuilder;

    invoke-direct {p1}, Ljava/lang/StringBuilder;-><init>()V

    const-string p3, "bduss"

    invoke-interface {p2, p3}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object p3

    invoke-virtual {p1, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    const-string p3, "\n"

    invoke-virtual {p1, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string p4, "device_token"

    invoke-interface {p2, p4}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object p5

    invoke-virtual {p1, p5}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    invoke-virtual {p1, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string p5, "uid"

    invoke-interface {p2, p5}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object p5

    invoke-virtual {p1, p5}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    invoke-virtual {p1, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-interface {p2, p4}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object p2

    invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    if-eqz p1, :cond_11

    .line 64
    iget-object p2, p0, Lcom/estrongs/android/ui/dialog/n$a;->a:Lcom/estrongs/android/ui/dialog/n;

    new-instance p3, Ljava/lang/StringBuilder;

    invoke-direct {p3}, Ljava/lang/StringBuilder;-><init>()V

    const-string p4, "quikreg:"

    invoke-virtual {p3, p4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-static {p1}, Lcom/estrongs/android/util/o0;->b(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    invoke-virtual {p3, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    invoke-static {p2, v4, p1}, Lcom/estrongs/android/ui/dialog/n;->a(Lcom/estrongs/android/ui/dialog/n;Ljava/lang/String;Ljava/lang/String;)Z

    goto :goto_c

    .line 65
    :cond_e
    new-instance p3, Lcom/estrongs/android/ui/dialog/i0;

    iget-object p4, p0, Lcom/estrongs/android/ui/dialog/n$a;->a:Lcom/estrongs/android/ui/dialog/n;

    invoke-static {p4}, Lcom/estrongs/android/ui/dialog/n;->a(Lcom/estrongs/android/ui/dialog/n;)Landroid/content/Context;

    move-result-object p4

    invoke-direct {p3, p4}, Lcom/estrongs/android/ui/dialog/i0;-><init>(Landroid/content/Context;)V

    invoke-virtual {p3, p2, p1}, Lcom/estrongs/android/ui/dialog/i0;->a(Ljava/lang/String;Ljava/lang/String;)Lcom/estrongs/android/ui/dialog/i0;

    invoke-virtual {p3}, Lcom/estrongs/android/ui/dialog/i0;->a()V

    goto :goto_c

    .line 66
    :cond_f
    :goto_a
    invoke-static {}, Les/u30;->e()Les/u30;

    move-result-object p1

    invoke-static {}, Lcom/estrongs/android/pop/esclasses/ESActivity;->z()Landroid/app/Activity;

    move-result-object p2

    const/4 p3, 0x2

    invoke-virtual {p1, p2, p3}, Les/u30;->a(Landroid/app/Activity;I)V

    goto :goto_c

    .line 67
    :cond_10
    :goto_b
    new-instance p2, Landroid/content/Intent;

    iget-object p3, p0, Lcom/estrongs/android/ui/dialog/n$a;->a:Lcom/estrongs/android/ui/dialog/n;

    invoke-static {p3}, Lcom/estrongs/android/ui/dialog/n;->a(Lcom/estrongs/android/ui/dialog/n;)Landroid/content/Context;

    move-result-object p3

    const-class p4, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;

    invoke-direct {p2, p3, p4}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string p3, "nettype"

    .line 68
    invoke-virtual {p2, p3, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 69
    iget-object p1, p0, Lcom/estrongs/android/ui/dialog/n$a;->a:Lcom/estrongs/android/ui/dialog/n;

    invoke-static {p1}, Lcom/estrongs/android/ui/dialog/n;->a(Lcom/estrongs/android/ui/dialog/n;)Landroid/content/Context;

    move-result-object p1

    invoke-virtual {p1, p2}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V

    .line 70
    :cond_11
    :goto_c
    iget-object p1, p0, Lcom/estrongs/android/ui/dialog/n$a;->a:Lcom/estrongs/android/ui/dialog/n;

    iget-object p1, p1, Lcom/estrongs/android/ui/dialog/n;->a:Lcom/estrongs/android/ui/dialog/q;

    invoke-virtual {p1}, Lcom/estrongs/android/ui/dialog/q;->dismiss()V

    return-void
.end method
